Leetcode 14 | Longest Common Prefix - Easy | Javascript